//
//  WDTaskSetGrabLockRequest.m
//  wd-serviceapp
//
//  Created by Bin Tang on 2024/9/7.
//

#import "WDTaskSetGrabLockRequest.h"

@interface WDTaskSetGrabLockRequest ()
@property (nonatomic, strong) WDTaskSetGrabLockReqModel *reqModel;
@end

@implementation WDTaskSetGrabLockRequest

- (instancetype)initWithModel:(WDTaskSetGrabLockReqModel *)model {
    if (self = [super init]) {
        self.reqModel = model;
    }
    return self;
}

- (NSString *)requestUrl {
    return kTASK_APPLY_SET_GRAB_LOCK;
}

- (TYZRequestSerializerType)requestSerializerType {
    return TYZRequestSerializerTypeJSON;
}

- (TYZRequestMethod)requestMethod {
    return TYZRequestMethodPOST;
}

- (id)requestArgument {
    NSDictionary *params = [self.reqModel yy_modelToJSONObject];
    return params;
}

@end
